package at.fhhgb.mc.android.mfb_hgb.activity.dialog;

import android.app.Activity;
import at.fhhgb.mc.android.mfb_hgb.R;

/**
 * Standard ProgressDialog
 */
public class ProgressDialog {
	private android.app.ProgressDialog pDialog;
	
	public ProgressDialog(Activity activity)
	{
		pDialog = new android.app.ProgressDialog(activity);
		pDialog.setMessage(activity.getText(R.string.loading_text));
		pDialog.setIndeterminate(false);
		pDialog.setCancelable(false);
	}
	
	public void show()
	{
		pDialog.show();
	}
	
	public void dismiss()
	{
		pDialog.dismiss();
	}
}
